﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Integrated
{
    public interface IVendorServices
    {
        public Task<IEnumerable<Vendor>> GetAllAsync();
        public Task<IEnumerable<Vendor>>GetAsync(int PageIndex, int PageSize,string VendorCode,string VendorName, string VendorNick,string VendorEn,string Tel,string VendorLevel, string EnableFlag);

        public Task<int> GetCountAsync(string VendorCode, string VendorName, string VendorNick, string VendorEn, string Tel, string VendorLevel, string EnableFlag);
        public Task<bool> AddAsync(Vendor model);
        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> DeleteAsync(int Id);
        public Task<bool> UpdateAsync(Vendor model);

    }
}
